<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css"/>
    <link rel="stylesheet" href="../plugins/elementui/index.css"/>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script src="../plugins/elementui/index.js"></script>
    <style type="text/css">
        .ppp {
            font-size: 14px;
            color: #818181;
            line-height: 2;
            padding-top: 10px;
            padding-left: 20px;
        }

        .ddd {
            background-color: white;
            height: 50px;
            margin-bottom: 5px;
            margin-top: 7px;
        }
    </style>
    <script>
        var id = getUrlParam("id");//根据请求URL中的参数名称获取对应的值
        //alert(id);
    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%"/>
            </div>
            <div class="project-text">
                <h4 class="tit">{{orderDetails.setmealName}}</h4>
                <p class="subtit">{{orderDetails.remark}}</p>
                <h4 class="tit" style="color: red">套餐价格：{{orderDetails.price}}元</h4>
                <br/>
                <p class="keywords">
                    <span>{{orderDetails.sex == '0' ? '性别不限' : orderDetails.sex == '1' ? '男':'女'}}</span>
                    <span>{{orderDetails.age}}</span>
                </p>
            </div>
        </div>
        <div style="width: 100%">
            <ul>
                <li style="width: 100%">
                    <div class="ddd">
                        <p class="ppp"><i class="el-icon-setting"></i>&nbsp;预约人：{{orderDetails.memberName}}</p>
                    </div>
                </li>
                <li style="width: 100%">
                    <div class="ddd">
                        <p class="ppp"><i class="el-icon-circle-plus"></i>&nbsp;预约方式：{{orderDetails.orderType}}</p>
                    </div>
                </li>
                <li style="width: 100%">
                    <div class="ddd">
                        <p class="ppp"><i class="el-icon-circle-plus"></i>&nbsp;预约时间：{{orderDetails.orderDate}}</p>
                    </div>
                </li>
                <li style="width: 100%">
                    <div class="ddd">
                        <p class="ppp"><i class="el-icon-circle-plus"></i>&nbsp;预约状态：{{orderDetails.orderStatus}}</p>
                    </div>
                </li>
                <li style="width: 100%">
                    <div class="ddd">
                        <p class="ppp"><i class="el-icon-location"></i>&nbsp;预约体检机构地址：{{orderDetails.addressName}}</p>
                    </div>
                </li>
                <li style="width: 100%">
                    <div class="ddd" style="text-align: center">
                        <div style="padding-top: 10px">
                            <a href="/pages/setmeal.html"
                               style="color: #ff0000;font-size: 16px;">点击查看所有套餐</a></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            imgUrl: null,
            orderDetails: {}
            },
        methods: {},
        mounted() {
            axios.get("/order/findOrderDetailsById.do?id=" + id).then((response) => {
                if (response.data.flag) {
                    this.orderDetails = response.data.data;
                    this.orderDetails.orderDate=this.orderDetails.orderDate.substring(0,11);
                    this.imgUrl = 'http://qglltafxh.hn-bkt.clouddn.com/' + this.orderDetails.img;
                }
            });
        }
    });
</script>
</body>